//
//  InputView.h
//  IfengNews
//
//  Created by ifeng on 12-12-28.
//
//

#import <UIKit/UIKit.h>
#import "CustomTextView.h"
@protocol InputViewDelegate
//发送评论
@optional
//-(void)postComment:(NSString *)content alsoShareTo:(ShareType)shareType;
-(void)postComment:(NSString *)content param:(NSDictionary *)param;
-(void)postComment:(NSString *)content param:(NSDictionary *)param liveparam:(NSDictionary *)_liveparam;
@end
@interface InputView : UIView<UITextFieldDelegate,UITextViewDelegate,UITableViewDelegate,UITableViewDataSource,UIImagePickerControllerDelegate,UINavigationControllerDelegate>
{
  CustomTextView *commentContent;
  UITextField *commentContentField;
  
  UIView *commentView;
  int currentRowNum;    //表示的是当前的发表评论的编辑框的行数
  UIImageView *commentDownView;
  UIImageView *commentMidView;
  UIImageView *commentUpView;
  
  CGRect originDownBgFrame;
  CGRect originMidBgFrame;
  CGRect originUpBgFrame;
  
  CGRect rect_m;
  CGRect rect_t;
  CGRect rect_keyBoard;     //表示键盘的frame
  
  float iosVersion;
  UIButton *backGroundButton;
  
  UIView *alertHeaderView;//发送的后顶部提示view
  UILabel *alertHeaderLabel;
    BOOL isReply;
}
@property (nonatomic, strong) CustomTextView *commentContent;
@property (nonatomic, strong) UITextField *commentContentField;
@property (nonatomic, strong) UIView *commentView;
@property (nonatomic, strong) UIImageView *commentDownView;
@property (nonatomic, strong) UIImageView *commentMidView;
@property (nonatomic, strong) UIImageView *commentUpView;
@property (nonatomic, assign) int currentRowNum;
@property (nonatomic, weak) id<InputViewDelegate> delegate;
@property (nonatomic,copy) void (^comfirmPress)(NSString *content,int share);
@property (nonatomic,copy) void (^canclePress)(NSString *conntent);
@property (nonatomic, strong)  UIButton *backGroundButton;
@property (nonatomic,strong) UIButton *linkButton;
@property (nonatomic)  UIView *alertHeaderView;
@property (nonatomic,assign)BOOL isInOriginal;
@property (nonatomic)  UILabel *alertHeaderLabel;
@property (nonatomic,assign)BOOL isReply;
@property (nonatomic,strong) NSString *name;
@property (nonatomic,unsafe_unretained)BOOL isShowLine;
@property (nonatomic,strong)NSString *successLine;
@property (nonatomic,strong)NSDictionary *param;
@property (nonatomic, unsafe_unretained) BOOL isShowImagePicker;
@property (nonatomic, strong) UIView *pickerView;
@property (nonatomic, strong) UIButton *pickerButton;
@property (nonatomic, strong) NSString *voide_path;
@property (nonatomic, strong) NSMutableDictionary *postparam;
@property (nonatomic, strong) NSMutableDictionary *liveparam;

@property (nonatomic, strong) UIView *shareView;
@property (nonatomic, strong) NSMutableArray *shareButtons;
//@property (nonatomic, unsafe_unretained) ShareType sharetype;
@property (nonatomic, unsafe_unretained)BOOL isShowShare;
@property (nonatomic,unsafe_unretained )int commentType;

@property (nonatomic,strong) NSString *backString;

@property (nonatomic,strong )NSArray *shares;

@property (nonatomic,strong)UIImageView *select;

@property (nonatomic,unsafe_unretained)int beSelect;

-(void)createContent:(UIView *)superView;
//回收键盘操作
-(BOOL)resign;
//触发键盘
-(void)notResign;
@end
